package com.kuang.scanner;

import java.util.Scanner;

/**
 * @author wuJiaWei
 * @version 1.0
 * @date 2024/8/8
 * @time 17:12:12
 */
public class Demo02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("NextLine类型：");
        String str = "";
        while (str != "exit"){
            str = scanner.next();
            System.out.println("输入的是："+str);
        }

        scanner.close();
    }
}
